<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://xmlns.jcp.org/jsf/core"
                template="/library/templates/mainTemplate.xhtml">
    <f:metadata>
        <f:viewAction action="#{navigationController.selectReaders}"/>
    </f:metadata>
    <ui:define name="libContent">
        <span>список читателей</span>
        <h:dataTable id="booklist" value="#{readerController.readers}" var="bk" border="1">
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Идентификатор"/>
                </f:facet>
                <h:outputLabel value="#{bk.id}"/>
            </h:column>
            <h:column>
                <f:facet name="header">
                    <h:outputText value="Имя"/>
                </f:facet>
                <h:outputLabel value="#{bk.name}"/>
            </h:column>
        </h:dataTable>
    </ui:define>
</ui:composition>